Attendance Register
TIME LIMIT = 1 SEC.
- In a parallel universe, VBIT is located on Mars. And with every academic year, new students come in and seniors pass out (most of them). Now, all the faculty is busy with other important work, so the HoD of Avishkar block has asked you to prepare the attendance register of a section.
The attendance register is always in the lexicographical order i.e. the Dictionary order. Given, N names of students, print the names in lexicographical order. Note that the names of the students do not exceed the size of 30. Also, note that Martian names are gibberish, and are not like Earthling names.
Input | Output |
First line will contain N , number of testcases. Each of the following N lines contain the name of each student. |
Print the names in lexicographical order. |
- 1 ≤ N ≤ 1000
- 2 ≤ Length of Name ≤ 30